﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Shape
    {
        public int a;
        public int A
        {
            get { return a; }
            set { a = value; }
        } 
        public Shape(int a)
        {
            this.A = a;
        }
        public virtual void GetArea()
        {

        }
    }
    class Circle:Shape
    {
        public Circle(int a):base(a)
        {
            
        }
        public override void GetArea()
        {
            Console.WriteLine(a*a*3.14);
        }
    }
    class Square : Shape
    {
        public Square(int a) : base(a)
        {
            this.A = a;
        }
        public override void GetArea()
        {
            Console.WriteLine(a*a);
        }
    }
    class Clculate
    {
        public static void Clculatetest(Shape shape)
        {

            shape.GetArea();
        }

    }
}
